package com.yaozheng.vocationaltraining.activity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;

import android.content.Intent;
import android.view.View;

import com.yaozheng.vocationaltraining.R;
import com.yaozheng.vocationaltraining.utils.Constants;

/**
 * 闯关模式
 *
 * @author Administrator
 */
@EActivity(R.layout.activity_pass_through_mode_menu)
public class PassThroughModeMenuActivity extends BaseActivity {

    @AfterViews
    public void initView() {
        setHeadTitle("闯关模式");
    }

    /**
     * 进入闯关之旅
     */
    public void enterCheckpointsTripActivity(View view) {
        Intent intent = new Intent();
        intent.setClassName(this,
                Constants.CHECKPOINTS_TRIP_ACTIVITY_CLASS_NAME);
        try {
            intent.putExtra("i", Integer.parseInt(String.valueOf(view.getTag())));
        } catch (Exception e) {
            intent.putExtra("i", 1);
        }
        startActivity(intent);
    }
}
